/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_novel_chapter.entity;

import com.jeeplus.modules.xs_writer.entity.XsWriter;
import com.jeeplus.modules.xs_book.entity.XsBook;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 小说章节信息Entity
 * @author 天竹子
 * @version 2021-07-20
 */
@Data
public class XsNovelChapter extends DataEntity<XsNovelChapter> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="第几章", align=2, sort=1)
	private Integer chapterNumber;		// 第几章
	@ExcelField(title="章节名称", align=2, sort=2)
	private String name;		// 章节名称
	@ExcelField(title="正文内容", align=2, sort=3)
	private String content;		// 正文内容
	@ExcelField(title="正文字数", align=2, sort=4)
	private Integer wordNumber;		// 正文字数
	@ExcelField(title="是否发布(1.是2.否)", dictType="is_no", align=2, sort=5)
	private String isRelease;		// 是否发布(1.是2.否)
	@ExcelField(title="是否通过(1.是2.正在验证3.否)", dictType="is_pass", align=2, sort=6)
	private String isPass;		// 是否通过(1.是2.正在验证3.否)
	@ExcelField(title="收费金额", align=2, sort=7)
	private Double charge;		// 收费金额
	@ExcelField(title="作家名称", fieldType=XsWriter.class, value="writer.name", align=2, sort=8)
	private XsWriter writer;		// 作家名称
	@ExcelField(title="书籍名称", fieldType=XsBook.class, value="book.name", align=2, sort=9)
	private XsBook book;		// 书籍名称
	@ExcelField(title="广告链接", align=2, sort=10)
	private String advertisingUrl;		// 广告链接
	
	public XsNovelChapter() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public XsNovelChapter(String id){
		super(id);
	}


}